﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>首页</title>
  <meta name="page-view-size" content="1280*720" />
  <link rel="stylesheet" href="./css/base.css" />
  <link rel="stylesheet" href="./css/helpDetail.css" />
  <script type="text/javascript" src="./lib/js/evm.js"></script>
  <script type="text/javascript" src="./lib/js/Evm_djyw.js"></script>
  <script type="text/javascript" src="./lib/js/key.js"></script>
  <script src="lib/js/md5.js" type="text/javascript" charset="utf-8"></script>
  <script src="./lib/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
  <script src="./lib/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/api.js" type="text/javascript" charset="utf-8"></script>
  <script src="./js/public.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
  <div class="index-bg" id="indexMain">

    <div class="title"></div>
    <div class="helpBox">
      <div class="top">

        <div class="contentBox">
          <div class="yellow">
            姓名
          </div>
          <div class="name">

          </div>
        </div>

        <div class="contentBox">
          <div class="yellow">
            手机号
          </div>
          <div class="phone">

          </div>
        </div>
        <div class="contentBox">
          <div class="yellow">
            时间
          </div>
          <div class="time">

          </div>
        </div>
        <div class="contentBox">
          <div class="yellow">
            所属组织
          </div>
          <div class="add">

          </div>
        </div>
        <div class="contentBox messageBox">
          <div class="yellow">
            点单留言
          </div>
          <div class="message">

          </div>
        </div>


      </div>
      <hr style="width: 90%;margin:0% 5%;">
      <div class="down">
        <div class="contentBox">
          <div class="yellow ">
            处理状态
          </div>
          <div class="status">

          </div>
        </div>
        <div class="contentBox ins">
          <div class="yellow">
            处理时间
          </div>
          <div class="chulitime">

          </div>
        </div>
        <div class="contentBox ins">
          <div class="yellow">
            用户评价
          </div>
          <div class="pingjia">

          </div>
        </div>
        <div class="contentBox ins">
          <div class="yellow">
            处理意见
          </div>
          <div class="yijian">

          </div>
        </div>
      </div>

    </div>

  </div>

</body>
<script>
  // 首页视频

  var modelIndex = {
    isVideo: false,
    disUser: false,
    isIndex: false,
    disHeader: true,
    index: 0, //初始位置
    listName: "model", //模块名称
    containerId: "indexMain", //包含模块的标签id
  };

  GetDatas('help', {
    id: TV.GetParam("id"),
  }, function (err, res) {
    console.log(res)
    $(".title").html(res.data.title)
    $(".name").html(res.data.username)
    $(".phone").html(res.data.mobile)
    $(".time").html(res.data.format_add_time)

    $(".add").html(res.data.origin)
    $(".message").html(res.data.content)


    switch (res.data.status) {
      case 0:
        $(".status").html("点单中")
        break;
      case 1:
        $(".status").html("帮助中")
        break;
      case 2:
        $(".status").html("帮助完成")
        break;
      case 3:
        $(".ins").show()
        $(".status").html("已评价")
        break;
      case 4:
        $(".ins").show()
        $(".status").html("关闭")
        break;

    }

    for (var z = 0; z < res.data.scores; z++) {
      $(".pingjia").append('<img class="people-img" src="/images/star.png">')
    }
    for (var z = 0; z < (5 - res.data.scores); z++) {
      $(".pingjia").append('<img class="people-img" src="/images/stars.png">')
    }
    $(".chulitime").html(res.data.format_reply_time)

    $(".yijian").html(res.data.reply_info)

  })

  function exitPage() {}
</script>

<script type="text/javascript" src="js/index.js"></script>

</html>